package com.sunda.spmsuser.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * SPMS用户信息表
 * </p>
 *
 * @author Wayne
 * @since 2021-01-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SPMS_USER")
@ApiModel(value="SpmsUser对象", description="SPMS用户信息表")
public class SpmsUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "员工编号")
    @TableId("WORK_CODE")
    private String userId;

    @ApiModelProperty(value = "登陆密码")
    @TableField("LOGIN_PASSWORD")
    private String loginPassword;

    @ApiModelProperty(value = "员工ID")
    @TableField("WORK_ID")
    private String workId;

    @ApiModelProperty(value = "员工姓名")
    @TableField("LAST_NAME")
    private String lastName;

    @ApiModelProperty(value = "电话")
    @TableField("TELEPHONE")
    private String telephone;

    @ApiModelProperty(value = "手机")
    @TableField("MOBILE")
    private String mobile;

    @ApiModelProperty(value = "邮箱")
    @TableField("EMAIL")
    private String email;

    @ApiModelProperty(value = "岗位ID")
    @TableField("POSITION_ID")
    private String positionId;

    @ApiModelProperty(value = "岗位名称")
    @TableField("POSITION_NAME")
    private String positionName;

    @ApiModelProperty(value = "部门ID")
    @TableField("DEPT_ID")
    private String deptId;

    @ApiModelProperty(value = "部门名称")
    @TableField("DEPT_NAME")
    private String deptName;

    @ApiModelProperty(value = "分部ID")
    @TableField("SUBCOMPANY_ID")
    private String subcompanyId;

    @ApiModelProperty(value = "分部名称")
    @TableField("SUBCOMPANY_NAME")
    private String subcompanyName;

    @ApiModelProperty(value = "分公司")
    @TableField("COMPANY")
    private String company;

    @ApiModelProperty(value = "分点")
    @TableField("BRANCH_POINT")
    private String branchPoint;

    @ApiModelProperty(value = "分线")
    @TableField("BRANCH_LINE")
    private String branchLine;

    @ApiModelProperty(value = "直接上级ID")
    @TableField("MANAGER_ID")
    private String managerId;

    @ApiModelProperty(value = "直接上级名称")
    @TableField("MANAGER_NAME")
    private String managerName;

    @ApiModelProperty(value = "状态-0：试用 1：正式 2：临时 3：试用延期")
    @TableField("OA_STATUS")
    private String oaStatus;

    @ApiModelProperty(value = "员工在SPMS系统状态-默认1正常；0停用；")
    @TableField("SPMS_STATUS")
    private String spmsStatus;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getLoginPassword() {
        return loginPassword;
    }

    public void setLoginPassword(String loginPassword) {
        this.loginPassword = loginPassword;
    }

    public String getWorkId() {
        return workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPositionId() {
        return positionId;
    }

    public void setPositionId(String positionId) {
        this.positionId = positionId;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getSubcompanyId() {
        return subcompanyId;
    }

    public void setSubcompanyId(String subcompanyId) {
        this.subcompanyId = subcompanyId;
    }

    public String getSubcompanyName() {
        return subcompanyName;
    }

    public void setSubcompanyName(String subcompanyName) {
        this.subcompanyName = subcompanyName;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getBranchPoint() {
        return branchPoint;
    }

    public void setBranchPoint(String branchPoint) {
        this.branchPoint = branchPoint;
    }

    public String getBranchLine() {
        return branchLine;
    }

    public void setBranchLine(String branchLine) {
        this.branchLine = branchLine;
    }

    public String getManagerId() {
        return managerId;
    }

    public void setManagerId(String managerId) {
        this.managerId = managerId;
    }

    public String getManagerName() {
        return managerName;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    public String getOaStatus() {
        return oaStatus;
    }

    public void setOaStatus(String oaStatus) {
        this.oaStatus = oaStatus;
    }

    public String getSpmsStatus() {
        return spmsStatus;
    }

    public void setSpmsStatus(String spmsStatus) {
        this.spmsStatus = spmsStatus;
    }

    @Override
    public String toString() {
        return "SpmsUser{" +
                "userId='" + userId + '\'' +
                ", loginPassword='" + loginPassword + '\'' +
                ", workId='" + workId + '\'' +
                ", lastName='" + lastName + '\'' +
                ", telephone='" + telephone + '\'' +
                ", mobile='" + mobile + '\'' +
                ", email='" + email + '\'' +
                ", positionId='" + positionId + '\'' +
                ", positionName='" + positionName + '\'' +
                ", deptId='" + deptId + '\'' +
                ", deptName='" + deptName + '\'' +
                ", subcompanyId='" + subcompanyId + '\'' +
                ", subcompanyName='" + subcompanyName + '\'' +
                ", company='" + company + '\'' +
                ", branchPoint='" + branchPoint + '\'' +
                ", branchLine='" + branchLine + '\'' +
                ", managerId='" + managerId + '\'' +
                ", managerName='" + managerName + '\'' +
                ", oaStatus='" + oaStatus + '\'' +
                ", spmsStatus='" + spmsStatus + '\'' +
                '}';
    }
}
